#include "mem/CacheEntry.h"

NEW_DELETE_OPERATORS_CPP(CacheEntry,1000000);

CacheEntry::CacheEntry(LineFlags* const flags_, Processor* const processor_)
    : _age(0),
      inVictimCache(false),
      flags(flags_),
      processor(processor_),
      location(NULL)
{
}

CacheEntry::~CacheEntry() {
    ASSERT(location == NULL);
    ASSERT(flags);
    delete flags;
}

void CacheEntry::checkSanity() {
    ASSERT(flags != NULL);
}
